package com.group8.ge;

import javax.swing.ImageIcon;

public class Plate extends GameObject {


	private boolean isBreakable;
	private boolean isMoving;
	private int breakCount;
	
	public Plate(){
		img = new ImageIcon("assets/plate.png").getImage();
	}
	
	public Plate(double x, double y, boolean isBreakable, boolean isMoving, int breakCount){
		img = new ImageIcon("assets/plate.png").getImage();
		this.isBreakable = isBreakable;
		this.isMoving = isMoving;
		this.breakCount = breakCount;
		width = DEFAULT_WIDTH_PLATE;
		height = DEFAULT_HEIGHT_PLATE;
		super.x = x;
		super.y = y;
	}
	
	
	public void moveHorizontal(){
		setX(getX()+0.5);
		if(getX()>660)
			setX(0);
	}

}
